
package org.apache.mina.common;

/**
 * Represents a thread model of an {@link IoService}. There's no essential
 * difference from {@link IoFilterChainBuilder}. The only difference is that
 * {@link ThreadModel} is executed later than the {@link IoFilterChainBuilder}
 * you specified. However, please don't abuse this internal behavior; it can
 * change.
 * 
 * ThreadModel：IoService的线程模型。与IoFilterChainBuilder没有本质的区别。唯一不同的是，
 * ThreadModel的执行会比你所指定的IoFilterChainBuilder要晚。 尽管如此，请不要滥用内部行为，它会被改变的。
 */
public interface ThreadModel extends IoFilterChainBuilder {
    /**
     * A {@link ThreadModel} which make MINA not manage a thread model at all.
     * 
     * 一个让MINA一点也不管理线程模型的线程模型。
     */
    static final ThreadModel MANUAL = new ThreadModel() {
                                        public void buildFilterChain(
                                                IoFilterChain chain)
                                                throws Exception {
                                            // Do nothing.
                                        }
                                    };
}
